package com.video_study.dao;

import com.video_study.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersMapper {
    int deleteByPrimaryKey(String id);

    int insert(Users record);

    Users selectByPrimaryKey(String id);

    List<Users> selectAll();

    int updateByPrimaryKey(Users record);

    Users selectByUsername(String username);

    List<Users> getUsers(@Param("page") Integer page, @Param("limit") Integer limit);

    Long getCount();

    List<Users> getUser(@Param("page") Integer page, @Param("limit")Integer limit, @Param("id")String id, @Param("username")String username, @Param("phone")String phone);

    Long getCount1(@Param("page") Integer page, @Param("limit")Integer limit, @Param("id")String id, @Param("username")String username, @Param("phone")String phone);

    Users insertByUserId(String id,String username,String password);
}